<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <h1>React 版本:15.6.1</h1>
    <div id="app"></div>
    <script src="react/react.js"></script>
    <script src="react/react-dom.js"></script>
    <script src="react/browser.min.js"></script>
    <script type="text/babel">
        let names = ['JSPang','技术胖','React'];
        var HelloComponent =React.createClass({
            render:function(){
                return (
                    <div>
                    {
                        names.map(function(name){
                            return <div key = {name}>Hello,{name}!</div>
                        })
                    }
                    </div>
                );
            }
        });

        ReactDOM.render(
            React.createElement(HelloComponent,null),
            document.getElementById('app')
        )
    </script>
</body>
</html>